/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;

import button.LatchWhenPressedButton;
import button.SwitchWhenPressedButton;

/**
 * @author Connor Willison
 */
public class DriverStation708 {
    
    public static Gamepad gamepad;
    private static final int gpadport = 1;
    
    public static LatchWhenPressedButton runScript;
    public static LatchWhenPressedButton readNamesFile;
    public static LatchWhenPressedButton autoModeUp;
    public static LatchWhenPressedButton autoModeDown;
    public static SwitchWhenPressedButton useGyro;
    public static LatchWhenPressedButton stopScripts;
    public static LatchWhenPressedButton lswitch;
    public static LatchWhenPressedButton resetGyro;
    public static LatchWhenPressedButton nextScreen;
    public static LatchWhenPressedButton prevScreen;
    
    public static void init(RobotParts robot){
	gamepad = new Gamepad(gpadport);
	
	runScript = new LatchWhenPressedButton(gamepad,Gamepad.button_A,"Run Script");
	readNamesFile = new LatchWhenPressedButton(gamepad,Gamepad.button_R_Shoulder,"Read autoModeNames");
        autoModeUp = new LatchWhenPressedButton(gamepad,Gamepad.button_Y,"Increase auto mode.");
        autoModeDown = new LatchWhenPressedButton(gamepad,Gamepad.button_X,"Decrease auto mode.");
        useGyro = new SwitchWhenPressedButton(gamepad,Gamepad.button_L_Shoulder,"Toggle Gyro Use.");
        resetGyro = new LatchWhenPressedButton(gamepad,Gamepad.button_Start,"Reset Gyro Accumulator.");
        stopScripts = new LatchWhenPressedButton(gamepad,Gamepad.button_B,"Stop scripts.");
//        lswitch = new LatchWhenPressedButton(robot.getLSwitch());
        lswitch = new LatchWhenPressedButton(gamepad,Gamepad.button_Start,"lswitch");
        nextScreen = new LatchWhenPressedButton(gamepad,Gamepad.button_RightStick,"Next Screen.");
        prevScreen = new LatchWhenPressedButton(gamepad,Gamepad.button_LeftStick,"Previous Screen.");
    }
}
